<?php /* Smarty version 2.6.14, created on 2015-01-13 17:50:13
         compiled from break_app.index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'break_app.index.html', 26, false),array('modifier', 'date_format', 'break_app.index.html', 29, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<form action="<?php echo $this->_tpl_vars['formAction']; ?>
" method="POST" <?php if ($this->_tpl_vars['is_validator']): ?> id="adminform" onsubmit="return Validator.Validate(this)" <?php endif; ?>>
<table width="100%" border="0" class="adminlist" cellspacing="0">
  <thead>
  <tr>
 	<th><input id="toggle" type="checkbox" value=""/></th>
	<th><?php echo $this->_tpl_vars['systemLang']['app']; ?>
</th>
	<th><?php echo $this->_tpl_vars['systemLang']['version']; ?>
</th>
	<th><?php echo $this->_tpl_vars['systemLang']['taxis']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['type']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['icon']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['downurl']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['state']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['modifytime']; ?>
</th>
    <th><?php echo $this->_tpl_vars['systemLang']['operation']; ?>
</th>
  </tr>
  </thead>
  <tbody>
  <?php $_from = $this->_tpl_vars['app']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a'] => $this->_tpl_vars['channel']):
?>
  <tr class="row0">
    <td><input name="select_id[]" type="checkbox" class="checkbox" id="cb<?php echo $this->_tpl_vars['a']; ?>
" value="<?php echo $this->_tpl_vars['channel']['app_id']; ?>
" /></td>
    <td><?php echo $this->_tpl_vars['channel']['app_name']; ?>
&nbsp;</td>
    <td><?php echo $this->_tpl_vars['channel']['app_version']; ?>
</td>
    <td><?php echo $this->_tpl_vars['channel']['app_taxis']; ?>
</td>
	<td><?php if ($this->_tpl_vars['channel']['app_type']):  echo $this->_tpl_vars['systemLang']['game'];  else:  echo $this->_tpl_vars['systemLang']['soft'];  endif; ?></td>
    <td><?php if ($this->_tpl_vars['channel']['app_icon']): ?><img src=http://img.coolsrv.com/ez/64x64_/<?php echo ((is_array($_tmp=$this->_tpl_vars['channel']['app_icon'])) ? $this->_run_mod_handler('replace', true, $_tmp, 't', 'v') : smarty_modifier_replace($_tmp, 't', 'v')); ?>
 ><?php endif; ?>&nbsp;</td>
    <td><a href='<?php echo $this->_tpl_vars['channel']['app_down_url']; ?>
'  target=_blank>下载</a>&nbsp;</td>
    <td><?php if ($this->_tpl_vars['channel']['app_state']):  echo $this->_tpl_vars['systemLang']['state_online'];  else:  echo $this->_tpl_vars['systemLang']['state_offline'];  endif; ?>&nbsp;</td>
    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['channel']['app_modify_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
&nbsp;</td>

   	<td>
        <a href="<?php echo @BASEURI; ?>
break_app/edit/<?php echo $this->_tpl_vars['channel']['app_id']; ?>
"><?php echo $this->_tpl_vars['systemLang']['edit']; ?>
</a> &nbsp;
        <a href="<?php echo @BASEURI; ?>
break_app/delete/<?php echo $this->_tpl_vars['channel']['app_id']; ?>
" <?php echo @IS_DELETE; ?>
><?php echo $this->_tpl_vars['systemLang']['del']; ?>
</a>
    </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?>
  </tbody>
  <tfoot>
  <tr>
    <td colspan="4">
    <input type="button"  value="<?php echo $this->_tpl_vars['systemLang']['publish']; ?>
" onclick="button_location('<?php echo @BASEURI; ?>
break_app/publish',false)" class="button"/>
    
    <input type="button"  value="<?php echo $this->_tpl_vars['systemLang']['add']; ?>
" onclick="button_location('<?php echo @BASEURI; ?>
break_app/add',false)" class="button"/>
    
    <input type="button"  value="<?php echo $this->_tpl_vars['systemLang']['del']; ?>
" onclick="select_control('<?php echo @BASEURI; ?>
break_app/delete','<?php echo $this->_tpl_vars['systemLang']['delConfirm']; ?>
')" class="button"/>
    
    
    </td>
	<td colspan="6"><?php echo $this->_tpl_vars['page']; ?>
</td>
  </tr>
  </tfoot>
</table>
</form>
<script>
function getSelectedValue(name){
var obj=document.getElementById(name);
return obj.value;      //直接用其对象的value属性便可获取到
}
function abc(url,a,c){
	ab=getSelectedValue(a);
	//bc=getSelectedValue(b);
	ca=getSelectedValue(c);
	window.location=url+'/'+ab+'/'+ca;
}
</script>